﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using BOHVote.BLL;

namespace BOH.Reports
{
    public partial class SubjectEvaluate : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindSubject();
            }
        }

        public void BindSubject()
        {
            DataSet dst = Subject.getAllASubject();
            foreach (DataRow dr in dst.Tables[0].Rows)
            {
                ListItem li = new ListItem(dr["subjectName"].ToString(), dr["subjectID"].ToString());
                this.drpSubject.Items.Add(li);
            }
        }
    }
}
